/* eslint-disable simple-import-sort/imports */
import { createApp } from 'vue';
import TDesign from 'tdesign-vue-next';

import ElementPlus from 'element-plus';
import VxeUI from 'vxe-pc-ui';
import VxeUITable from 'vxe-table';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import App from './App.vue';
import router from './router';
import { store } from './store';
import i18n from './locales';
import 'element-plus/dist/index.css';

import 'tdesign-vue-next/es/style/index.css';
import '@/style/index.less';
import './permission';

import 'vxe-pc-ui/lib/style.css';
// ...

// 完整导入 表格库
import 'vxe-table/lib/style.css';
// ...

const app = createApp(App);

app.use(VxeUI).use(VxeUITable);
app.use(ElementPlus);
app.use(TDesign);
app.use(store);
app.use(router);
app.use(i18n);

app.use(ElementPlus, {
  locale: zhCn,
});

app.mount('#app');
